import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/parkInside/list',
    method: 'post',
    data: query
  })
}

export function parkInsideDetail(id) {
  return request({
    url: `/parkInside/${id}`,
    method: 'get',
  })
}


export function createParkInside(query) {
  return request({
    url: '/parkInside/createParkInside',
    method: 'post',
    data: query
  })
}

export function updateParkInside(query) {
  return request({
    url: '/parkInside/updateParkInside',
    method: 'post',
    data: query
  })
}

export function parkInsideContinueRent(query) {
  return request({
    url: '/parkInside/continueRent',
    method: 'post',
    data: query
  })
}

export function parkInsideCancelRentInfo(query) {
  return request({
    url: '/parkInside/cancelRentInfo',
    method: 'post',
    data: query
  })
}

export function parkInsideCancelRent(query) {
  return request({
    url: '/parkInside/cancelRent',
    method: 'post',
    data: query
  })
}

// 删除（逻辑删除）/
export function logicDelete(query) {
  return request({
    url: '/parkInside/logicDelete',
    method: 'post',
    data: query
  })
}

export function operationLogList(query) {
  return request({
    url: '/parkInside/operationLog/list',
    method: 'post',
    data: query
  })
}